#ifndef SERIAL_H
#define SERIAL_H

#include <ftdi.h>
#include <string>
#include <QString>
#include <iostream>
#include <sstream>

class Serial
{
  public:
    Serial(char*);
    ~Serial();
    
    int writeData(unsigned char*, int);
    int readData(unsigned char*, int);
    
  private:
    int ftdiClose();
    int ftdiInit(char*);

    int connectStatus;
    
    struct ftdi_context ftdic;
    
};
#endif
